home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / object-faq.part2 < prev    next >
Encoding:
Internet Message Format  |  1993-12-15  |  57.9 KB

  1. Subject: Comp.Object FAQ Version 1.0.5 (12-13) Part 2/8
  2. Newsgroups: comp.object,comp.answers,news.answers
  3. From: Bob Hathaway <rjh@geodesic.com>
  4. Date: Tue, 14 Dec 1993 04:43:09 GMT
  5.  
  6. Archive-name: object-faq/part2
  7. Last-Modified: 12/13/93
  8. Version: 1.0.5
  9.  
  10. "Poly" means "many" and "morph" means "form".  The homograph polymorphism has
  11. many uses in the sciences, all referring to objects that can take on or assume
  12. many different forms.  Computer Science refers to Strachey's original
  13. definitions of polymorphism, as divided into two major forms, parametric and
  14. ad-hoc.  Cardelli and Wegner followup with another classification scheme,
  15. adding inclusion polymorphism for subtyping and inheritance.
  16.  
  17.  
  18. > Strachey's Original Definition [Strachey 67]:
  19.  
  20. "Parametric polymorphism is obtained when a function works uniformly on a range
  21. of types; these types normally exhibit some common structure.  Ad-hoc
  22. polymorphism is obtained when a function works, or appears to work, on several
  23. different types (which may not exhibit a common structure) and may behave in
  24. unrelated ways for each type."  
  25.  
  26. Parametric polymorphism is also referred to as "true" polymorphism, whereas
  27. ad-hoc polymorphism isn't (apparent polymorphism).
  28.  
  29.  
  30. > Cardelli and Wegner's Definition [Cardelli 85]:
  31.  
  32. C+W refine Strachey's definition by adding "inclusion polymorphism" to model
  33. subtypes and subclasses (inheritance).  Strachey's parametric polymorphism is
  34. divided into parametric and inclusion polymorphism, which are closely related,
  35. but separated to draw a clear distinction between the two forms, which are then
  36. joined as specializations of the new "Universal" polymorphism.
  37.  
  38.                                  |-- parametric
  39.                  |-- universal --|
  40.                  |               |-- inclusion
  41.   polymorphism --|
  42.                  |               |-- overloading
  43.                  |-- ad hoc    --|
  44.                                  |-- coercion
  45.  
  46. Polymorphic Languages: some values and variables may have more than one type.
  47.  
  48. Polymorphic Functions: functions whose operands (actual parameters) can
  49.   have more than one type.  [...] If we consider a generic function to be
  50.   a value, it has many functional types and is therefore polymorphic.
  51.  
  52. Polymorphic Types: types whose operations are applicable to operands of more
  53.   than one type.
  54.  
  55. Parametric Polymorphism: a polymorphic function has an implicit or explicit
  56.   type parameter which determines the type of the argument for each
  57.   application of that function.
  58.  
  59. Inclusion Polymorphism: an object can be viewed as belonging to many different
  60.   classes that need not be disjoint; that is, there may be inclusion of
  61.   classes.
  62.  
  63. The two forms of "Universal Polymorphism", parametric and inclusion are closely
  64. related, but are distinct enough in implementation to justify separate
  65. classifications.
  66.  
  67. Parametric polymorphism is referred to as generics.  Generics can be syntactic,
  68. where each instantiation creates a specialized version of the code allowing
  69. fast running execution, but in a "true polymorphic system", only a single
  70. implementation is used.
  71.  
  72. On inheritance is subtype polymorphism:
  73. "Subtyping on record types corresponds to the concept of inheritance
  74. (subclass) in languages, especially if records are allowed to have functional
  75. components."
  76.  
  77. Author's Notes:
  78. Implicit parametric polymorphism can be implemented with type inferencing
  79. schemes [Aho 85].  ML is prototypical in providing this facility.
  80.  
  81. Inclusion polymorphism is common and is found in languages such as Simula,
  82. Ada-9x, C++, CLOS, Eiffel and etc. (subclass polymorphism).  Smalltalk also
  83. uses inclusion polymorphism; its used in declaring classes, and subclass
  84. polymorphism is used in practice but not enforced.  For inheritance, inclusion
  85. polymorphism specifies an instance of a subclass can appear wherever an
  86. instance of a superclass is required.  For subtyping (subtype polymorphism),
  87. the same applies because all operations required by the supertype are present
  88. in the subtype (subtype is subset of supertype).  Cardelli and Wegner view
  89. classes as sets of objects (resulting in subtype objects are a subset of
  90. supertype objects, or an extentional view), as contrasted with a feature based
  91. (intentional) approach (where subtypes are supersets of (contain) supertypes).
  92. MI provides an interesting example here, as it is set intersection with an
  93. extensional view and set union with an intentional view.  Details are left as
  94. an exercise for the reader.
  95.  
  96. Ada generics and C++ templates provide explicit syntactic generics.  While
  97. Ada may infer some actual generic parameters (operations) and C++ doesn't
  98. require explicit instantiation of its template functions, formal generic
  99. parameters must still be declared and many bodies are generated.
  100.  
  101. Inclusion polymorphism can refer to subtyping, or having at least as much or
  102. more than required.  Since derived classes can inherit structure and behavior
  103. from base classes, such inheritance is an example of inclusion polymorphism
  104. with respect to representation (subclassing).  An example of inclusion
  105. polymorphism with respect to assignment (and initialization, or replacement if
  106. viewed in an almost symbolic way) occurs when object types may be specified and
  107. assignment is based on actual object membership in that type (often of the CLOS
  108. is-a-member-of form in OO).  Emerald provides another example of an object-
  109. oriented language using inclusion polymorphism with respect to replacement;
  110. however, inclusion is with respect to subtyping only with abstract types
  111. ("bounded quantification" by C+W.  C+W's parameters are subtype polymorphic
  112. but lose the inherent type).  Any object possessing all required operations is
  113. acceptable and no inheritance relation is required (subtype polymorphism).
  114. They refer to this as "best-fitting" types [Black 86].  The original Trellis/
  115. Owl also had such a facility but with two separate inheritance hierarchies,
  116. although it was abandoned in favor of a single class-based approach for
  117. simplicity.  See also section 2.7.
  118.  
  119. [As inclusion polymorphism covers both subtype and subclass polymorphism,
  120.  perhaps IP could be further divided in C+W's above classification.]
  121.  
  122.  
  123. > Booch's Definition [Booch 91, p. 517]:
  124.  
  125. polymorphism  A concept in type theory, according to which a name (such as a
  126. variable declaration) may denote objects of many different classes that are
  127. related by some common superclass; thus, any object denoted by this name is
  128. able to respond to some common set of operations in different ways.
  129.  
  130. Booch also has several sections devoted to polymorphism.
  131.  
  132. [The author notes Booch's definition above is clearly in the context of
  133.  conventional, classical OO and subclass polymorphism.]
  134.  
  135.  
  136. > Meyer's Definition [Meyer 88, sect. 10.1.5 Polymorphism]:
  137.  
  138. "Polymorphism" means the ability to take several forms.  In object-oriented
  139. programming, this refers to the ability of an entity to refer at run-time to
  140. instances of various classes.  In a typed environment such as Eiffel, this is
  141. constrained by inheritance: ...
  142.  
  143. [The Author notes Meyer has a following section 10.1.7 on Static Type,
  144.  dynamic type, which is relevant, but claims "... there is no way the type
  145.  of an object can ever change.  Only a reference can be polymorphic: ...".
  146.  Meyer is clear between the concept and the Eiffel realization in his
  147.  polymorphism definition above, but here neglects the "becomes" facility
  148.  as found in several dynamically typed OO languages such as Actors, CLOS,
  149.  Self and Smalltalk, which allows an object (and not just a reference) to
  150.  change its class.]
  151.  
  152.  
  153. > Stroustrup's Definition [Stroustrup 90, p. 209]:
  154.  
  155. The use of derived classes and virtual functions is often called "object-
  156. oriented programming".  Furthermore, the ability to call a variety of
  157. functions using exactly the same interface - as is provided by virtual
  158. functions - is sometimes called "polymorphism".
  159.  
  160. [The Author notes this is a functional view of polymorphism (as provided in
  161. C++).  [Stroustrup 91, p. 136] has an example of polymorphism with void *'s,
  162. but a newer template function is incomparably preferable, as implied in
  163. [Stroustrup 90, ch 14]]
  164.  
  165.  
  166. Rumbaugh's Definition [Rumbaugh 91, p. 2]:
  167.  
  168. "Polymorphism" means that the same operation may behave differently on
  169. different classes.
  170.  
  171.  
  172. 2.2)  What Does Polymorphism Boil Down To In OO Programming Languages?
  173. ----------------------------------------------------------------------
  174.  
  175. In C++, virtual functions provide polymorphism.  This is because a polymorphic
  176. object (pointer or reference (or such parameter)) is assignment compatible with
  177. any object of a derived class.  Is this polymorphism in itself?  Objects
  178. can take on objects of different forms (the derived classes), but of what use
  179. is it?  To make any difference, the differing forms must have some effect.  In
  180. dynamically typed languages, polymorphic objects are passed messages and will
  181. respond in whatever way the object has defined (usually starting from its most
  182. derived class and working its way up).  But for static objects, a virtual
  183. function is invoked.  This is the stored method from the derived class that
  184. overrode the virtual method from its base class, providing specialized behavior
  185. for the polymorphic object; and hence, polymorphism.  This common pure
  186. statically typed example is, of course, an example of inclusion polymorphism,
  187. subclass polymorphism to be more specific (see section 2.1).  Pure statically
  188. typed subtype polymorphism, as provided in Emerald, can be implemented
  189. similarly [Black 86].
  190.  
  191.  
  192. 2.3)  What Is Dynamic Binding?
  193. ------------------------------
  194.  
  195. Dynamic binding has two forms, static and dynamic.  Statically-typed dynamic
  196. binding is found in languages such as C++ (virtual functions) and Eiffel
  197. (redefinition).  It is not known which function will be called for a virtual
  198. function at run-time because a derived class may override the function, in
  199. which case the overriding function must be called.  Statically determining all
  200. possibilities of usage is undecidable.  When the complete program is compiled,
  201. all such functions are resolved (statically) for actual objects. Formal object
  202. usage must have a consistent way of accessing these functions, as achieved thru
  203. vtables of function pointers in the actual objects (C++) or equivalent,
  204. providing statically-typed dynamic binding (this is really just defining simple
  205. function pointers with static typechecking in the base class, and filling them
  206. in in the derived class, along with offsets to reset the receiver).
  207.  
  208. The run-time selection of methods is another case of dynamic binding, meaning
  209. lookup is performed (bound) at run-time (dynamically).  This is often desired
  210. and even required in many applications including databases, distributed
  211. programming and user interaction (e.g. GUIs).  Examples can be found in
  212. [Garfinkel 93, p80] and [Cox 91, pp 64-67].  To extend Garfinkels example with
  213. multiple-polymorphism, a cut operation in an Edit submenu may pass the cut
  214. operation (along with parameters) to any object on the desktop, each of which
  215. handles the message in its own way (OO).  If an (application) object can cut
  216. many kinds of objects such as text and graphical objects, multiple-polymorphism
  217. comes into play, as many overloaded cut methods, one per type of object to be
  218. cut, are available in the receiving object, the particular method being
  219. selected based on the actual type of object being cut (which in the GUI case is
  220. not available until run-time).
  221.  
  222. Again, various optimizations exist for dynamic lookup to increase efficiency
  223. (such as found in [Agrawal 91] and [Chambers 92]).
  224.  
  225. Dynamic binding allows new objects and code to be interfaced with or added to
  226. a system without affecting existing code and eliminates switch statements.
  227. This removes the spread of knowledge of specific classes throughout a system,
  228. as each object knows what operation to support.  It also allows a reduction in
  229. program complexity by replacing a nested construct (switch statement) with a
  230. simple call.  It also allows small packages of behavior, improving coherence
  231. and loose coupling.  Another benefit is that code complexity increases not
  232. linearly but exponentially with lines of code, so that packaging code into
  233. methods reduces program complexity considerably, even further that removing
  234. the nested switch statement!  [Martin 92] covers some of these issues.
  235.  
  236.  
  237. 2.4)  Is There A Difference Between Being A Member Or Instance Of A Class?
  238. --------------------------------------------------------------------------
  239.  
  240. Yes (but be careful of context).  To use C++ terminology, an object (not
  241. a reference) is defined to be an instance of exactly one class (in classical
  242. OO), called its most derived class.  An object not directly contained in any
  243. other is called the complete object [Stroustrup 90].  An object is a member
  244. of several classes, including all of the classes its declared (or most derived)
  245. class inherits from.  With static typing and inclusion polymorphism based on
  246. class, if a polymorphic object (or reference) is made to refer to an object,
  247. that object must be a member of the polymorphic object's class.
  248.  
  249. This also provides a good example of differing definitions among object-
  250. oriented languages, since a member is defined as above in CLOS, but a member of
  251. a class is one of its instance variables in C++.
  252.  
  253.  
  254. 2.5)  What Is The Difference Between Static And Dynamic Typing?
  255. ---------------------------------------------------------------
  256.  
  257. Static typing refers to types declared in a program at compile-time, so no type
  258. information is available on objects at run-time.  Dynamic typing uses the
  259. inherent types of polymorphic objects, keeping track of the types of objects at
  260. run-time.  Statically typed dynamic binding is a compromise (usually
  261. implemented with tables of function pointers and offsets), and is how
  262. statically-typed OO languages provide polymorphism.  Some approaches provide
  263. both static and dynamic typing, sometimes with static typing providing type-
  264. safe programs and dynamic typing providing multiple-polymorphism [Agrawal 91]
  265. [Mugridge 91].  See also section 2.3.
  266.  
  267. Static typing is more efficient and reliable, but loses power.  Typical
  268. restrictions include only allowing a common set of base class functions (or
  269. any common functions for the more general subtyping or parametric polymorphic
  270. cases) to be available on formal objects and a lack of multiple-polymorphism
  271. (see section 1.19), both of which are overcome with dynamic typing.
  272.  
  273. Many languages provide dynamic typing: Smalltalk, Self, Objective-C, and etc.
  274. A limited dynamic typing scheme, called RTTI (Run Time Type Identification),
  275. is even being considered for the C++ standard.  A similar facility to safe
  276. downcasting (historically known as type narrowing), the thrust of RTTI, can
  277. also be found in recent versions of Eiffel.
  278.  
  279. See section 3.4 for a categorization of common OO languages by type system.
  280.  
  281.  
  282. 2.6)  What Is This I Hear About ML And Functional Programming Languages?
  283. ------------------------------------------------------------------------
  284.  
  285. ML, Metalanguage, is a functional programming language with a strongly typed
  286. polymorphic type system [Wikstrom 87].  Russell (see Appendix E) is a more
  287. recent functional language and Haskell [Hudak 92] provides a more modern and
  288. "pure" example.  Section 2.5 discusses why static typing has less power/
  289. flexibility than dynamic typing and the same applies to ML (although see the
  290. appendixes for an experimental dynamic extension to ML, Alcool-90 and [Cardelli
  291. 85] for a proper placement of ML's type system).  ML doesn't use inheritance
  292. for polymorphism; unlike OO languages, but provides the prototypical example of
  293. parametric polymorphism, so no inheritance is required.  This is "true" or
  294. "pure" statically (or strongly) checked parametric polymorphism, by Strachey's
  295. (and Cardelli and Wegner's) definitions.
  296.  
  297. Smalltalk is an example of a dynamically-typed language which does not check
  298. types during assignment (and hence for parameters) and therefore provides
  299. parametric polymorphism without static constraints (by Strachey's definition).
  300. However, Smalltalk's style uses inclusion polymorphism in practise and
  301. inheritance for subclassing (representation).
  302.  
  303.  
  304. 2.7)  What Is A Separation Between Type And Class (Representation)?
  305. -------------------------------------------------------------------
  306.  
  307. For a short answer:
  308.   Subtype Polymorphism, as opposed to Subclass Polymorphism, is the best answer
  309.   in OO.  Parametric polymorphism is a related concept where this is also true,
  310.   but is of a different flavor (and usually requires object attributes by use.
  311.   See also section 2.1).
  312.  
  313. A type can be considered a set of values and a set of operations on those
  314. values.  This can insure type-safe programming.  However, the representation of
  315. types (classes in OO) can be separated from the notion of type allowing many
  316. representations per type while still maintaining reasonable type-safety.
  317.  
  318. In many languages, a type has a single representation insuring all operations
  319. performed on that type are well defined (statically bound) and providing for
  320. efficiency by taking advantage of that representation wherever used.  In many
  321. OO languages, subclassing and dynamic binding provides for greater flexibility 
  322. by providing object specialization.  However, in many OO languages classes are
  323. used for assignment compatibility forcing an assigned object to inherit
  324. (transitively) from any polymorphic object's class (inclusion polymorphism
  325. based on class, or subclass polymorphism).  This insures all operations to be
  326. performed on any polymorphic object are satisfied by any replacing objects.
  327. This also insures all types share a common representation, or at least a
  328. common base interface specification.
  329.  
  330. By separating type from class, or representation (or perhaps separating class
  331. from type, by the aforementioned definition of type), a replacing object must
  332. satisfy the operations or type constraints of a polymorphic object (subtype
  333. polymorphism) but are not required to do to do so by an inheritance relation
  334. (subclass polymorphism), as is typical in most OOPLs.  Dropping this
  335. restriction is somewhat less type-safe, because accidental matches of method
  336. signatures can occur, calling for greater care in use.  [Black 86] discusses
  337. this issue in Emerald.  The same issue arises in parametric polymorphism
  338. (generics/templates), as any method matching a required signature is accepted,
  339. calling for careful matching of actual and formal generic parameters.  The
  340. difference between static and dynamic binding in OO and dynamic binding and
  341. subtyping seems similar.  A possible loss of semantic integrity/similarity is
  342. contrasted with greater power.
  343.  
  344. It is possible to specify desired abstract properties of type specifications
  345. with mechanisms similar to Eiffel's pre-, post-, and invariant conditions.
  346. This helps to insure the semantic integrity of replacing objects and their
  347. behavior.  [Liskov 93] provides a recent exposition.
  348.  
  349. Abstract classes ([Stroustrup 91] and [Meyer 88]) in typing provide a facility
  350. similar to subtype polymorphism; however, ACs require type compatible classes
  351. to inherit from them, providing a subclass polymorphism facility, and ACs can
  352. also specify representation.  Subtyping is therefore most useful to avoid
  353. spreading knowledge of classes throughout a system, which is a high priority
  354. for loosely coupled modules and in distributed programming [Black 87].
  355.  
  356. The formal type system found in [Cardelli 85], Emerald/Jade [Black 86] and
  357. [Raj 89], original trellis/Owl, an experimental C++ extension (See Appendix E,
  358. Signatures), Sather (Eiffel-based), and an Eiffel superset [Jones 92] are all
  359. examples of OO systems providing subtype polymorphism.  Functional languages
  360. such as ML, Russell, and Haskell provide a separation with pure parametric
  361. polymorphism (as is also commonly found in OO languages in additon to inclusion
  362. polymorphism).
  363.  
  364.  
  365. 2.8)  What Are Generics And Templates?
  366. --------------------------------------
  367.  
  368. Short Answer: Parametric Polymorphism (although various implementations
  369.               provide various subsets).
  370.  
  371. Generics (or Templates in C++) refer to the ability to parameterize types
  372. and functions with types.  This is useful for parameterized classes and
  373. polymorphic functions as found in languages such as Ada, C++, Eiffel, and
  374. etc., although these are "syntactic" or restricted forms [Cardelli 85].
  375. Generics are orthogonal to inheritance, since types (and classes)
  376. may be generically parameterized.  Generics provide for reusability in
  377. programming languages.  An example is a Stack with a generically
  378. parameterized base type.  This allows a single Stack class to provide
  379. many instantiations such as a Stack of ints, a Stack of any fundamental
  380. or user defined type, or even a Stack of Stacks of ...  Another example is
  381. a polymorphic sort function taking a base type with a comparison operator.
  382. The function can be called with any type (containing a comparison operator).
  383. See [Booch 87b] for several examples in Ada and [Stroustrup xx] and [Murray
  384. 93] for examples in C++.
  385.  
  386. While generics have many advantages, typical limitations include a static
  387. nature, which is an advantage for strong typechecking but a potential
  388. disadvantage when causing dynamic compilation (leading to a time/space
  389. efficiency tradeoff), and sources can cause inlining and create source code
  390. dependencies and expand code size (unlike a single-body or "true"
  391. parametrically polymorphic implementation.  Generics can also be viewed as a
  392. special case of type variables.
  393.  
  394. Functions are typically generic in statically-typed parametrically-polymorphic
  395. languages.  One such popular functional language is ML, in which all functions
  396. are generic.  Russell and Haskel are more modern variants (references are
  397. forthcoming, however see APPENDIX E).
  398.  
  399.  
  400. SECTION 3:  GENERAL
  401. ===================
  402.  
  403.   References:   (many more are to come)
  404.     [Coplien 92]    Covers C++, symbolic, exemplar (single-hierarchy), etc.
  405.     [Kim 89]        Covers many OO systems.
  406.  
  407.  
  408. 3.1)  What Is The "Classical" Object-Oriented Paradigm?
  409. -------------------------------------------------------
  410.  
  411. This refers to the usual class and object model.  Its any 2+ level system
  412. as described in section 1.4.  See also [Coplien 92].
  413.  
  414.  
  415. 3.2)  What Is The "Delegation/Prototyping" Object-Oriented Paradigm?
  416. --------------------------------------------------------------------
  417.  
  418. See [Kim 89, ch 1,3].
  419.  
  420. This is the 1 Level System as Described under Meta-Classes.  Delegation refers
  421. to the delegating of responsibility and can be applied to inheritance.  When a
  422. derived class does not have a desired attribute, it "delegates" responsibility
  423. to one of its base classes.  In delegation systems, each object has a delegate
  424. list instead of a parent list. Thus, delegation's primary emphasis is 
  425. on message passing where an object could delegate responsibility of a message
  426. it couldn't handle to objects that potentially could (its delegates).  Any
  427. object can be added to the delegate list, giving dynamic inheritance (of a
  428. sort).  Typically, delegation and prototyping languages also have "part
  429. inheritance" in which fields and methods can be added and deleted from objects.
  430. This makes for easy "prototyping", which allows for objects to be constructed
  431. piece by piece at run-time, although the term "prototyping" in the context of
  432. delegation languages usually refers to objects serving as prototypes for
  433. object instantiation, or exemplars.
  434.  
  435. Next's NextStep OS provides delegation as an add-On to Objective-C, providing
  436. an example of delegation in a class-based language [Garfinkel 93].
  437.  
  438.  
  439. 3.3)  Are There Any Other Object-Oriented Paradigms?
  440. ----------------------------------------------------
  441.  
  442. There are many alternatives in OO.  Emerald/Jade ([Black 86] and [Raj 89])
  443. provides one, where inheritance is replaced with a roughly equivalent form
  444. where reuse occurs at a finer degree of granularity - method and instance
  445. variables - with subtype polymorphism making up the difference.
  446.  
  447. CLOS [Kim 89, ch 4] has a looser coupling of methods to classes and doesn't
  448. distinguish a receiver, but packages can help make up the difference.
  449.  
  450. Object Specialization [Sciore 89] is an example of a hybrid approach between
  451. delegation and classical systems, where parent classes have an extra level
  452. of indirection and inheritance hierarchies are specified on a per object/class
  453. basis.
  454.  
  455.  
  456. 3.4)  What Are The Major Object-Oriented Programming Languages Today?
  457. ---------------------------------------------------------------------
  458.  
  459. Statically-Typed:
  460.   Add 1 To Cobol giving Cobol with Objects.
  461.   Beta
  462.   C++
  463.   Classic-Ada
  464.   Dragoon
  465.   Emerald/Jade
  466.   Object Pascal
  467.   Trellis/Owl
  468.  
  469. Dynamically-Typed:
  470.   Actors Languages
  471.   Flavors
  472.   Self
  473.   Smalltalk
  474.  
  475. Both:
  476.   Actor
  477.   Ada-9x
  478.   C++ (With RTTI)
  479.   Cecil
  480.   CLOS
  481.   Eiffel
  482.   Modula-3
  483.   Objective-C
  484.   Sather
  485.  
  486.  
  487. 3.5)  What Are Object-Oriented Databases And Persistence?
  488. ---------------------------------------------------------
  489.  
  490. See also Appendices B and E and the comp.database.object newsgroup.
  491. Refs to be included in future FAQs.
  492.  
  493. Object-Oriented Databases are databases that support objects and classes.  They
  494. are different from the more traditional relational databases because they allow
  495. structured subobjects, each object has its own identity, or object-id (as
  496. opposed to a purely value-oriented approach) and because of support for methods
  497. and inheritance.  It is also possible to provide relational operations on an
  498. object-oriented database.  OODBs allow all the benefits of object-orientation,
  499. as well as the ability to have a strong equivalence with object-oriented
  500. programs, an equivalence that would be lost if an alternative were chosen, as
  501. with a purely relational database.
  502.  
  503. Another way of looking at Object-Oriented Databases is as a persistent object
  504. store with a DBMS.
  505.  
  506. Persistence is often defined as objects (and their classes in the case of
  507. OODBs) that outlive the programs that create them.  Object lifetimes can be
  508. viewed as a hierarchy, with locals/automatics having the shortest default
  509. lifetime and objects stored indefinitely in an OODB (which are persistent)
  510. having the longest.  Persistent object stores do not support query or
  511. interactive user interface facilities, as found in a fully supported OODBMS.
  512.  
  513. Appendix B also contains references for relational interfaces to OODBs.
  514.  
  515.  
  516. 3.6)  What Are Object-Oriented Operating Systems?
  517. -------------------------------------------------
  518.  
  519. Refs to be included in future FAQs.  See also Appendix E.
  520.  
  521. Object-Oriented Operating Systems provide resources through objects, sometimes
  522. all the way down to to the machine (OO architectures are found at the bottom).
  523. They are almost always distributed systems (DOS or DPOS), allowing objects to
  524. be passed freely between machines.  They are typically capability-based since
  525. objects, and hence system resources, can only be accessed if a capability to
  526. them is available to programs.
  527.  
  528. Here are some abstracts taken from several postings to the net.  This list is
  529. by no means exhaustive.
  530.  
  531. Chorus Micro-kernel (written in C++)
  532. Choices (research OS, University of Illinois, written in C++, supports SVR4)
  533. GEOS    (GeoWorks', written in Object Assembler, OO superset of 8086) 
  534. Mach    (CMU, supports BSD 4.3, really message-based)
  535. NachOS  (written in C++, OS teaching/learning OS)
  536. Ouverture Project (ESPRIT funded OMG IDL defines inter-module interfaces)
  537. SOS
  538. Spring      (Sun, written in C++)
  539. PenPoint OS (Go, written in C++)
  540.  
  541.  
  542. From: whitney@oberon.Meakins.McGill.CA ()
  543.  
  544. Insight ETHOS: On Object-Orientation in Operating Systems
  545. ISBN 3 72811948 2
  546.  
  547. This thesis covers the design of an extensible object-oriented 
  548. operating systems. The language used was Oberon-2. It includes
  549. a generalization of the Rider/Carrier principle, Object Directories
  550. as well as basic OS issues such as memory, file, tasking management. 
  551. It covers extensible objected-oriented programming from hardware up.
  552. It reviews other designs such as Clouds and Choices which where written
  553. It reviews other designs such as Clouds and Choices which where written
  554. on C++. [[ The lack of type-tests in C++ was a problem in other designs.]]
  555. ETHOS was implemented as an operating system for the Ceres computers
  556. at the ETH. 
  557.  
  558.  
  559. 3.7)  What Are The Current Object-Oriented Methodologies?
  560. ---------------------------------------------------------
  561.  
  562. Here is a list of OOSE Methodologies:
  563.  
  564.   Berard                        [Berard 93]
  565.   BON                           [Nerson 92]
  566.   Booch                         [Booch 94]
  567.   Coad/Yourdon                  [Coad 91]
  568.   Colbert                       [Colbert 89]
  569.   de Champeaux                  [de Champeaux 93]
  570.   Embley                        [Embley 92]
  571.   EVB                           [Jurik 92]
  572.   FUSION                        [Coleman 94]
  573.   HOOD                          [HOOD 89]
  574.   IBM                           [IBM 90,91]
  575.   Jacobson                      [Jacobson 92]
  576.   Martin/Odell                  [Martin 92]
  577.   Reenskaug (OOram, was OORASS) [Reenskaug 91]
  578.   ROOM                          [APPENDIX D, ObjecTime CASE Toolset]
  579.   Rumbaugh et al.               [Rumbaugh 91]
  580.   Shlaer and Mellor             [Shlaer 88 and 92]
  581.   Wasserman                     [Wasserman 90]
  582.   Winter Partners (OSMOSYS)     [Winter Partners]
  583.   Wirfs-Brock et al.            [Wirfs-Brock 90]
  584.  
  585. Further Ideas And Techniques:
  586.   Meyer                         [Meyer 88]
  587.   Stroustrup                    [Stroustrup 91]
  588.  
  589. See APPENDIX D for CASE systems supporting these methodologies (several from
  590. the originators themselves).
  591.  
  592. See also section 1.21 for a discussion on OOA/OOD and etc.
  593.  
  594. Summaries and comparisons will be provided in future FAQs.  Suggestions for
  595. inclusion of other major or new methodologies should be sent to the FAQ author.
  596.  
  597. Here are some comparison studies posted to the net:
  598.  
  599. Arnold, P., Bodoff, S., Coleman, D., Gilchrist, H., Hayes, F., An Evolution of 
  600. Five Object Oriented Development Methods, Research report, HP Laboratories, 
  601. June 1991
  602.  
  603. de Champeaux, Dennis and Faure, Penelope. A comparative study of object-
  604. oriented analysis methods. Journal of Object Oriented Programming (JOOP), pp
  605. 21-32.  Vol.5, No. 1, 3/4-92
  606.  
  607. Fichman R.G. & Kemerer C.F.  OO and Conventional Analysis and Design
  608. Methodologies.  Computer, Oct 1992, Vol 25, No. 10, p 22-40
  609.  
  610. Fichman, Robert and Kemerer, Chris. Object-Oriented and Conventional Analysis
  611. and Design Methods - Comparison and Critique.  IEEE-Comp, Oct, 1992, pp 22-39.
  612. OOA, OOD, conventional analysis, conventional design, DeMarco SA, Yourdon SA,
  613. Bailin OO requirements specification, Coad-Yourdon OOA, Shlaer-Mellor OOA,
  614. Yourdon-Constantine SD, Martin information engineering design, Wasserman OOSD,
  615. Booch OOD, Wirfs-Brock responsibility-driven design.
  616.  
  617. Hong, S., van den Goor, G., and Brinkkemper, S.  A Comparison of Object-
  618. oriented Analysis and Design Methods. Working paper, Computer Information
  619. Systems Department, Georgia State University, Atlanta USA, 1992, 12 pages. To
  620. appear in the Proceedings of the 26th Hawaiian international conference on
  621. System Sciences, IEEE Computer Science Press.
  622.  
  623. Hong, S., van den Goor, G., Brinkkemper, S. A Formal Approach to the Comparison
  624. of Object-Oriented Analysis and Design Methodologies, Hawaii International 
  625. Conference on System Sciences (HICSS) (IEEE Computer Society Press, Hawaii)
  626. 1993, Vol. IV, pp. 689-698.  Summary of [van den Goor et.al., 1992] below.
  627.  
  628.   Order procedure:
  629.   Available from the authors at cisssh@gsusgi2.gsu.edu or sjbr@cs.utwente.nl.
  630.   The authors, regretfully, cannot supply ftp, postscript, TEX, or 
  631.   whatsoever.
  632.  
  633. Monarchi, David and Puhr, Gretchen I. A Research Typology for Object-Oriented
  634. Analysis and Design.  CACM/September 1992/Vol.35, No.9, pp35.
  635.  
  636. [Wilkie 93] summarizes, compares, and provides examples of Booch, Wirfs-Brock,
  637. Hood, Coad and Yourdon, Winter Partners, Shlaer and Mellor, Jacobson,
  638. Wasserman et al, Rumbaugh, Reenskaug et al, and Colbert.
  639.  
  640. Wirfs-Brock, R.J. and Johnson, R.E., "Surveying Current Research in Object-
  641. Oriented Design," The Communications of ACM, (33, 9) Sept. 1990, pp. 104-1124.
  642.  
  643. UNICOM. Approaches to Object-Oriented Analysis and Design.
  644. tel: l 44 895 256 484. Ask the TOC and have a look at it.
  645.  
  646.  
  647. Also commercially available:
  648.  
  649. An Evaluation of Object-Oriented Analysis and Design Methodologies (9)
  650. J. Cribbs, C Roe, S. Moon
  651. SIGS Books
  652. (212) 274-0640
  653. $149.
  654.  
  655. Object-Oriented Methodology Comparison Study (10 methodologies)
  656. Berard, Booch, Coad/Yourdon, Colbert, Embley, IBM, Martin/Odell, Rumbaugh,
  657. Shlaer/Mellor, Wirfs-Brock.  Also contains refs to several previous studies.
  658. Berard Software Engineering
  659. 101 Lakeforest Blvd., Suite 360, Gaithersburg, MD 20877
  660. Contact Person: Jim Youlio
  661. Phone:        301-417-9884
  662. Fax:          301-417-0021
  663. email:        info@bse.com
  664.  
  665. [van den Goor et.al., 1992] G. van den Goor, S. Hong and S. Brinkkemper,
  666. A Comparison of Six Object-oriented Analysis and Design Methods. Report
  667. Center of Telematics and Information Technology, University of Twente,
  668. the Netherlands, and Computer Information Systems Department, Georgia
  669. State University, Atlanta, USA, 1992, 163 pages, US$ 70.
  670.  
  671. This report gives an in-depth analysis of six generally accepted
  672. O-O methods, that are available in textbooks. The background, steps,
  673. concepts, notations, and specification techniques of the methods
  674. are extensively compared.
  675.  
  676. The six methods are:
  677. -  Object Oriented Analysis & Object Oriented Design (OOA/OOD) of Coad &
  678.       Yourdon (1991)
  679. -  Designing Object Oriented Software (DOOS) of Wirfs-Brock et.al. (1990)
  680. -  Object Modelling Technique (OMT) of Rumbaugh et.al. (1991)
  681. -  Object Oriented Systems Analysis (OOSA) of Shlaer & Mellor (1988)
  682. -  Object Oriented Design with Applications (OODA) of Booch (1991)
  683. -  Object Oriented Analysis and Design (OOAD) of Martin & Odell (1992).
  684.  
  685. The comparison is performed by meta-modelling, resulting into detailed
  686. information on the concepts of the methods (in EER notation) and on the
  687. steps of the procedure of the methods (in Task Diagrams). Extensive
  688. comparison tables of steps, concepts, techniques are included. Mappings of
  689. the methodical concepts to the constructs of programming languages (C++,
  690. Objective-C, Smalltalk-80, Object Pascal en CLOS) are given. A small
  691. test case illustrates the application of the methods.
  692.  
  693. Order procedure:
  694. Those who want to order the complete report (163 pp.) can order one by
  695. specifying their postal address in an e-mail (sjbr@cs.utwente.nl) or fax
  696. (+31.53.33.9605) attn. Sjaak Brinkkemper. The report will be send within
  697. two weeks with an invoice for US$ 70. (seventy dollar; including shipping,
  698. excl VAT).
  699.  
  700.  
  701. 3.8)  What Is the OMG/OMA/ORB/CORBA?
  702. ------------------------------------
  703.  
  704. Contents:
  705.   (3.8.1)  Contact Information
  706.   (3.8.2)  OMG Summary
  707.   (3.8.3)  Mail Server Access
  708.   (3.8.4)  OMG Publications
  709.              - First Class (Bi-Monthly Newsletter)
  710.              - Object Management Architecture Guide (OMA)
  711.              - The Common Object Request Broker: Arch. and Spec. (Corba)
  712.              - Pricing
  713.   (3.8.5)  Implementations (Brief)
  714.   (3.8.6)  Implementation Descriptions
  715.   (3.8.7)  Books, Articles, And Literature
  716.  
  717.  
  718. 3.8.1  Contact Information
  719. __________________________
  720.  
  721. Contact Person: Richard Soley (technical director) soley@omg.com
  722.  
  723. FTP Sites: 
  724.   omg.org:pub/*
  725.   omg.org:pub/NEC_DII/93-1-2.tar...            *CORBA (DII) (corba.ps.Z)
  726.   omg.org:pub/OMG_IDL_CFE_1.2/bin*              idl.SunOS4.x, idl.Solaris2.x
  727.   claude.ifi.unizh.ch:under pub/standards/spec  CORBA Spec
  728.  
  729. Headquarters:                            Marketing Office:
  730.   492 Old Connecticut Path                 3823 Birchwood Drive
  731.   Framingham, MA 01701                     Boulder, CO  80304
  732.   Tel: 508-820-4300                        Tel: 303-444-8129
  733.   Fax: 508-820-4303                        Fax: 303-444-8172
  734.  
  735.  
  736. 3.8.2  OMG Summary
  737. __________________
  738.  
  739. From: soley@emerald.omg.ORG (Richard Mark Soley)
  740. Subject: OMG
  741.  
  742. In answer to your general question about the OMG, here's a brief overview.
  743. Feel free to call, fax or email for more information.
  744.  
  745.         -- Richard Soley
  746.            Vice President & Technical Director
  747.            Object Management Group, Inc.
  748.            and coincidentally, MIT '82, SM '85, PhD '89 (EECS)
  749.  
  750. The Object Management Group (OMG) is an international software industry
  751. consortium with two primary aims:
  752.  
  753. (*) promotion of the object-oriented approach to software engineering
  754.     in general, and
  755.  
  756. (*) development of command models and a common interface for the development
  757.     and use of large-scale distributed applications (open distributed
  758.     processing) using object-oriented methodology.
  759.  
  760. In late 1990 the OMG published its Object Management Architecture
  761. (OMA) Guide document. This document outlines a single terminology for
  762. object-oriented languages, systems, databases and application
  763. frameworks; an abstract framework for object-oriented systems; a set
  764. of both technical and architectural goals; and an architecture
  765. (reference model) for distributed applications using object-oriented
  766. techniques.  To fill out this reference model, four areas of
  767. standardization have been identified:
  768.  
  769. 1) the Object Request Broker, or key communications element, for
  770.    handling distribution of messages between application objects in
  771.    a highly interoperable manner;
  772.  
  773. 2) the Object Model, or single design-portability abstract model for
  774.    communicating with OMG-conforming object-oriented systems;
  775.  
  776. 3) the Object Services, which will provide the main functions for
  777.    realising basic object functionality using the Object Request Broker -
  778.    the logical modeling and physical storage of objects; and
  779.  
  780. 4) the Common Facilities will comprise facilities which are useful in
  781. many application domains and which will be made available through OMA
  782. compliant class interfaces.
  783.  
  784. The OMG adoption cycle includes Requests for Information and
  785. Proposals, requesting detailed technical and commercial availability
  786. information from OMG members about existing products to fill
  787. particular parts of the reference model architecture.  After passage
  788. by Technical and Business committees to review these responses, the
  789. OMG Board of Directors makes a final determination for technology adoption.
  790. Adopted specifications are available on a fee-free basis to members and
  791. non-members alike.
  792.  
  793. In late 1991 OMG adopted its first interface technology, for the Object
  794. Request Broker portion of the reference model.  This technology, adopted
  795. from a joint proposal (named "CORBA") of Hewlett-Packard, NCR Corp.,
  796. HyperDesk Corp., Digital Equipment Corp., Sun Microsystems and Object
  797. Design Inc. includes both static and dynamic interfaces to an inter-
  798. application request handling software "bus."
  799.  
  800. Unlike other organizations, the OMG itself does not and will not
  801. develop nor sell software of any kind.  Instead, it selects and promulgates
  802. software interfaces; products which offer these interfaces continue to be
  803. developed and offered by commercial companies.
  804.  
  805. In order to serve OMG membership interested in other object-oriented systems
  806. arenas besides the distributed system problem, the Group supports Special
  807. Interest Groups for discussion of possible standards in other areas.  These
  808. groups at present are:
  809.  
  810.         1) Object Oriented Databases;
  811.         2) OO Languages;
  812.         3) End-User Requirements;
  813.         4) Parallel Processing;
  814.         5) Analysis & Design Methodologies;
  815.         6) Smalltalk; and
  816.         7) Class Libraries.
  817.  
  818. Any company, university/research institution or individual, whether
  819. end-user or vendor, can become a member of this body.  Administrative
  820. details are given at the end of this paper.
  821.  
  822.  
  823. 3.8.3  Mail Server Access
  824. _________________________
  825.  
  826. Information via Mail Server:
  827.   Send the following commands in a letter to the mail server.
  828.  
  829. mail omg_server@omg.org
  830. help                             (how to use file server)
  831. index                            (return a list of all available files)
  832. get <file>                       (get files returned by  index)
  833. log <info>                       (logs info on server)
  834. address <e-mail address)         (use this address instead of sender)
  835. list <directory> [match]         (index a directory, pattern 'match' files)
  836. size <segment size>              (max file size to send)
  837.  
  838. list mail
  839. list docs
  840. get docs/doclist.txt             
  841. get docs/91-12-1.ps               CORBA spec [although it looks a little old]
  842.  
  843.  
  844. Recommended (from the net):
  845.  
  846. mail omg_server@omg.org
  847. Subject: 
  848. help
  849. index
  850. list
  851. list mail
  852. list docs
  853. get docs/doclist.txt
  854.  
  855.  
  856. 3.8.4  OMG Publications
  857. _______________________
  858.  
  859. Below is from omg.org:pub/CORBA
  860.  
  861.  
  862. > First Class (Bi-Monthly Newsletter)
  863.  
  864. First Class is OMG's non-commercial bi-monthly 28-page
  865. newsletter. First Class provides current information on Object
  866. Technology developments, both technically and commercially. First
  867. Class offers an open editorial forum on numerous Object
  868. Technology topics and issues.  This publication features
  869. commentaries from software industry leaders, informative user
  870. case histories, OT training information and the latest object-
  871. oriented product announcements.  All OMG activities and the
  872. ongoing development of the Object Management Architecture are
  873. regularly reported.
  874.  
  875.  
  876. > Object Management Architecture Guide (OMA)
  877.  
  878. The members of the OMG have a shared goal of developing and using
  879. integrated software systems.  These systems should be built using
  880. a methodology that supports modular production of software;
  881. encourages reuse of code; allows useful integration across lines
  882. of developers, operating systems and hardware; and enhance long-
  883. range maintenance of that code.  As an organization, OMG believes
  884. that the object-oriented approach to software construction best
  885. supports their goals.  The OMA publication outlines the
  886. groundwork for technology response to Request for Proposals (RFP)
  887. and the adoption of specifications.
  888.  
  889.  
  890. > The Common Object Request Broker: Arch. and Spec. (Corba)
  891.  
  892. The CORBA, as defined by the OMG's Object Request Broker (ORB),
  893. provides the mechanisms by which objects transparently make
  894. requests and receive responses. The ORB provides interoperability
  895. between applications on different machines in heterogeneous
  896. distributed environments and seamlessly interconnects multiple
  897. object systems. The Common Object Request Broker Architecture and
  898. Specification described in this published document is a self-
  899. contained response to the Request for Proposals (RFP) issued by
  900. the ORB Task Force of the OMG.
  901.  
  902. > Pricing
  903.  
  904. [Here's why you don't see the specifications posted on the net!  These are
  905.  from the list of literature and periodicals listed in omg.org:pub/CORBA]
  906.  
  907. o I would like a one year subscription to First Class
  908.     ______ for $40 U.S.,  ______ for $50 outside U.S.
  909.  
  910. o I would like to order  ______ copy(s) of the Object Management
  911.   Architecture (OMA) Guide for $50 each.
  912.  
  913. o I would like to order  ______ copy(s) of the CORBA for $50 each.
  914.  
  915. o [Combinations]
  916.  
  917. Contact documents@omg.org or omg_documents@omg.org for more of the same...
  918.  
  919.  
  920. 3.8.5  Implementations (Brief)
  921. ______________________________
  922.  
  923. > DEC ACA.  Maynard, MA
  924.  
  925. Runs on AIX,VMS,ULTRIX,,MS-WINDOWS,MAC,HP-UX,UNIX, NT(planned).
  926.  
  927.  
  928. > HP ORB Plus and HP Distributed Smalltalk
  929.  
  930. Full implementation of the OMG CORBA 1.1 Object Request Broker.
  931. Also DOMF
  932.  
  933. Hewlett-Packard
  934. Distributed Computing Group
  935. 19447 Pruneridge Avenue
  936. Cupertino, CA 95014-9974 (USA)
  937. Ian Fuller ian@cup.hp.com (408) 447-4722
  938.  
  939.  
  940. > HyperDesk (Westborough MA) HD-DOMS, joe_cordo@hyperdesk.com
  941.  
  942. Runs on SPARC, HP/UX, IBM RS-6000, Data General Aviion, MS-Windows (client
  943. API only), NetWare (planned, Novell owns part of HyperDesk).
  944.  
  945.  
  946. > IBM SOM (System Object Model)
  947.  
  948. Available on AIX and OS/2.  See Distributed Computing Monitor, March 93 for a
  949. detailed review.
  950.  
  951.  
  952. > IONA Technologies, Dublin Orbix, info@iona.ie
  953.  
  954.     runs on (Unix (Solaris 1.1) (now), DOS, Windows, NT (planned)
  955.  
  956.  
  957. > ROLSCH CONSULTING (RC-ORB)
  958.  
  959.   implements ORB spec, DOS/Windows 3.1, 12 user license: $99.
  960.   Ref: Datamation, LOOK AHEAD Section, August 1.  German Company.
  961.  
  962.  
  963. > SuiteSoftware (Anaheim CA) SuiteDOME
  964.  
  965.     runs on VAX/VMS, Unix, PC
  966.  
  967.  
  968. > Sun DOE
  969.  
  970.  
  971. > Tivoli
  972.  
  973.  
  974. > CS Dept. University of Zurich, Switzerland.  maffeis@ifi.unizh.ch
  975.  
  976.     The ELECTRA Toolkit (not finished)
  977.  
  978.  
  979. 3.8.6  Implementation Descriptions
  980. ___________________________________
  981.  
  982. The OMG also has a (Corporate) Membership list and "known CORBA supporters"
  983. list with their info package.
  984.  
  985.  
  986. > The ELECTRA Toolkit
  987.  
  988. CS Dept. University of Zurich, Switzerland.  maffeis@ifi.unizh.ch
  989. The ELECTRA Toolkit
  990.  
  991. Subject: ORB Implementations
  992. Date: Tue, 4 May 1993 13:12:36 +0200 (MET DST)
  993. From: Silvano Maffeis <maffeis@ifi.unizh.ch>
  994.  
  995.   something like an Object Broker, but it is *not* CORBA compatible (yet).
  996.   Electra is a research project and not available yet.
  997.  
  998.   Its a toolkit for building failure resilient, distributed applications
  999.   in C++. It supports object-groups, virtual synchrony, multithreading
  1000.   etc. Electra is based on the HORUS toolkit (which is "the new ISIS
  1001.   implementation" developed at Cornell, Ithaca NY.)
  1002.   An overview paper to electra is available from:
  1003.   ftp.ifi.unizh.ch: pub/techreports/electra.ps.Z
  1004.  
  1005.  
  1006. > HD_DOMS
  1007.  
  1008. HD-DOMS (HyperDesk Distributed Object Management System).  A
  1009. CORBA-compliant DOMS.  Includes a GUI API driver for prototyping and
  1010. exercising objects, a bundled object database for persistent object
  1011. storage, a Kerberos-based authentication service, a location service, a
  1012. set of base classes to speed development, and a test script language.
  1013. Revision 1.0 has been shipping since beginning of '92.  Revision 1.1
  1014. (which includes support for CORBA's static client interface) is available
  1015. now, and a NetWare version is in the works.  Submitted a C++ language
  1016. mapping for IDL to the OMG recently.
  1017.  
  1018. HyperDesk Corporation
  1019. 2000 West Park Drive
  1020. Westboro, MA 01581
  1021. (508)366-5050
  1022.  
  1023.  
  1024. > HP ORB Plus and HP Distributed Smalltalk
  1025.  
  1026. From: daryl@cup.hp.com (Daryl Odnert)
  1027. Subject: HP ORB Plus and Distributed SmallTalk
  1028. Summary: Official HP Press release on HP ORB Plus and DST 2.0
  1029. Date: Thu, 30 Sep 1993 20:13:48 GMT
  1030. Organization: Hewlett-Packard
  1031.  
  1032.   ============================================================================
  1033.   SUBJECT:  HP INTRODUCES DISTRIBUTED-COMPUTING SOLUTION FOR BUILDING
  1034.             SCALABLE, OBJECT-ORIENTED APPLICATIONS
  1035.   DATE:     September 27, 1993
  1036.   ----------------------------------------------------------------------------
  1037.  
  1038.    PALO ALTO, Calif.--(BUSINESS WIRE) via First! -- Hewlett-Packard Company
  1039.  today introduced a distributed-computing solution for building scalable,
  1040.  object-oriented applications.
  1041.  
  1042.    With HP ORB Plus, programmers can develop scalable, object-based
  1043.  applications that can be distributed throughout the enterprise.  HP also
  1044.  introduced an enhanced version of HP Distributed Smalltalk.
  1045.  
  1046.    HP ORB Plus and HP Distributed Smalltalk are major components of HP's
  1047.  overall distributed-computing strategy, which is designed to give customers
  1048.  integrated, desktop access to enterprise-wide information and resources in
  1049.  distributed heterogeneous systems environments.  Of all computer companies,
  1050.  HP believes it is best positioned to help customers take advantage of
  1051.  distributed computing. HP provides a wide variety of distributed-computing
  1052.  products, understands how to help customers adopt new technology for maximum
  1053.  business benefit, and offers worldwide support and training programs,
  1054.  ranging from analysis and design to deployment.
  1055.  
  1056.    HP ORB PLUS:  CORBA AND DCE COMBINED
  1057.  
  1058.    HP ORB Plus is the only environment that combines the complete CORBA 1.1
  1059.  specification from the Object Management Group with the DCE standard from
  1060.  the Open Software Foundation(tm) as its transport mechanism.  DCE is
  1061.  designed to let developers write one application and then deploy it --
  1062.  without modification -- on any other system that supports DCE.  HP ORB Plus
  1063.  reduces the complexity of developing distributed applications so programmers
  1064.  can concentrate on the application itself without needing to know multiple
  1065.  operating systems, networking protocols or where application objects are
  1066.  stored.
  1067.  
  1068.    The DCE (Distributed Computing Environment) standard provides an
  1069.  integrated set of services that can be used separately or together to
  1070.  provide a distributed computing environment that's easy to administer.  The
  1071.  CORBA (common-object-request-broker architecture) specification provides a
  1072.  standard for how objects (in applications, repositories or class libraries)
  1073.  make requests and receive responses across a distributed network.
  1074.  
  1075.    HP ORB PLUS DETAILS
  1076.  
  1077.    HP ORB Plus consists of several components: the Distributed Object
  1078.  Management Facility (DOMF), object services, developers' and administrative
  1079.  tools, and sample applications.  HP's DOMF provides a location-transparent
  1080.  object-communication mechanism across heterogeneous networks by using the
  1081.  DCE standard.  This object- enabling technology specification was jointly
  1082.  developed with SunSoft. By following a common specification, HP and SunSoft
  1083.  have made it easier for their customers to port applications between their
  1084.  platforms.
  1085.  
  1086.    In addition, HP is working with IBM to integrate HP's DOMF with IBM's
  1087.  System Object Model with extensions for distribution.  This integration will
  1088.  eventually provide users with complete scalability, portability and
  1089.  interoperability of distributed applications across HP and IBM platforms.
  1090.  This is part of the companies' planned approach toward a standards-based,
  1091.  "plug-and-play"  object-oriented environment.  This will give developers,
  1092.  system administrators and end users language-neutral, enterprise-wide,
  1093.  heterogeneous support for building, managing and using distributed object-
  1094.  oriented applications.
  1095.  
  1096.    "We're so convinced of the value of object technology that we're staking
  1097.  our entire company on it,"  said Richard Tanler, president and chief
  1098.  executive officer of Information Advantage, Inc.  "Our object-based
  1099.  applications for retailers provide the means to a competitive business edge.
  1100.  We plan to use HP ORB Plus to develop new object-based products that
  1101.  retailers can distribute to end users throughout headquarters, all chain
  1102.  stores, and warehousing and distribution operations."
  1103.  
  1104.    HP DISTRIBUTED SMALLTALK 2.0
  1105.  
  1106.    In a related announcement, HP introduced Version 2.0 of HP Distributed
  1107.  Smalltalk.  This toolset works with VisualWorks from ParcPlace Systems to
  1108.  provide programmers with a rapid development environment for creating and
  1109.  running distributed applications.  These applications can use object
  1110.  databases (currently OpenODB from HP and Gemstone from Servio) as their
  1111.  storage mechanism to facilitate the reuse of objects.
  1112.  
  1113.    Applications built using HP Distributed Smalltalk currently run without
  1114.  modification on HP, Sun and IBM UNIX(R) system-based workstations.  They
  1115.  also will run on Apple Macintosh computers and on any PC running the Windows
  1116.  3.1 or Windows NT operating systems from Microsoft(R) Corp., once
  1117.  VisualWorks 2.0 is released (expected within two months.)
  1118.  
  1119.    New HP Distributed Smalltalk 2.0 features include the following:
  1120.  
  1121.    --  easier deployment, with the ability to run multiple HP
  1122.        Distributed Smalltalk-based applications on a single system;
  1123.    --  up to 400 percent increased performance, through quicker
  1124.        sending and receiving of remote messages, and reusable
  1125.        object libraries;
  1126.    --  run-time version, for full production deployment; and
  1127.    --  easier development, with remote object browsing so
  1128.        developers can find and use objects more quickly.
  1129.  
  1130.    TECHNICAL DETAILS AND AVAILABILITY
  1131.  
  1132.    HP's DOMF includes the object request broker, interface- definition-
  1133.  language compiler, static and dynamic invocation interface and interface
  1134.  repository.  In addition to these OMG-specific features, most developers
  1135.  writing distributed, object-oriented applications require additional
  1136.  interfaces to use objects effectively.  So developers don't need to create
  1137.  their own, HP has supplied several object-service interfaces for developers
  1138.  to use. That's why HP ORB Plus includes OMG interfaces and implementations
  1139.  for properties, life cycle, associations, event notification and naming.
  1140.  
  1141.    HP's limited release of HP ORB Plus to key developers is designed so that
  1142.  customer input can be incorporated into the product early in its development
  1143.  cycle.  The initial version will work with the C++ programming language.
  1144.  For the generally available Developer's Kit, C++, C and Smalltalk
  1145.  interoperability is planned so objects written in different languages can be
  1146.  combined into one application.  The Developer's Kit is scheduled to be
  1147.  available mid- 1994; prices will be announced then.  HP ORB Plus runs on the
  1148.  HP Apollo 9000 Series 700 workstations and HP 9000 Series 800 business
  1149.  servers.
  1150.  
  1151.    Hewlett-Packard Company is an international manufacturer of measurement
  1152.  and computation products and systems recognized for excellence in quality
  1153.  and support.  The company's products and services are used in industry,
  1154.  business, engineering, science, medicine and education in approximately 110
  1155.  countries.  HP has 94,900 employees and had revenue of $16.4 billion in its
  1156.  1992 fiscal year.
  1157.  
  1158.  EDITORIAL CONTACTS:
  1159.     Hewlett-Packard Company
  1160.     Lynne Hanson, 408/447-1415, Cupertino, Calif.
  1161.     Jill Kramer, 408/447-4275, Cupertino, Calif.
  1162.  
  1163.  ==================
  1164.  Daryl Odnert       daryl@cup.hp.com
  1165.  Distributed Computing Program
  1166.  Hewlett-Packard Company
  1167.  Cupertino, California
  1168.  
  1169.  
  1170. > Iris RDOM
  1171.  
  1172. From: rcbc@cs.cornell.edu (Robert Cooper)
  1173. Subject: Re: DCE vs. CORBA
  1174. Reply-To: rcbc@isis.com
  1175. Product: Isis Reliable Distributed Object Manager(tm) (RDOM)
  1176. Company: Isis Distributed Systems, Inc., Ithaca NY, USA.
  1177.  
  1178. Isis RDOM(tm) is a fault tolerant distributed ORB platform for reliable
  1179. multi-lingual object-oriented applications. RDOM provides an "object group"
  1180. paradigm for constructing complex applications out of collections of
  1181. cooperating objects. RDOM is built on top of the Isis Distributed
  1182. Toolkit(tm). RDOM provides interfaces from Smalltalk (Parcplace),
  1183. Objective-C, and C++, and runs on most Unix workstations. RDOM is currently
  1184. not CORBA compliant, but will be brought to compliance during 3Q93.
  1185.  
  1186. Status: 
  1187.  
  1188. RDOM has been at beta test sites since January. General release of
  1189. the Smalltalk and Objective-C language interfaces is expected in June.
  1190. The C++ interface in August. Customers include AMD, Consilium and Swiss
  1191. Bank Corp).  
  1192.  
  1193.  
  1194. > Orbix
  1195.  
  1196. Orbix
  1197. Iona Technologies Ltd.
  1198. O'Reilly Institute
  1199. Westland Row
  1200. Dublin 2
  1201. Ireland
  1202.  
  1203. "ORB, CORBA compliant.
  1204. Product launched June, 93 at the OMG Object World.
  1205. Now shipping.  Provides C++ support (gives distributed
  1206. C++ programming using CORBA);  C++-IDL binding was jointly submitted with
  1207. SunSoft/HP to OMG recent call. "
  1208. etc etc
  1209.  
  1210. Chris Horn,                                        tel: +353-1-6790677
  1211. Iona Technologies,                                 fax: +353-1-6798039
  1212. O'Reilly Institute,                                email: horn@iona.ie
  1213. Westland Row
  1214. IRL - Dublin 2
  1215.  
  1216.  
  1217. 3.8.7  Books, Articles, And Literature
  1218. --------------------------------------
  1219.  
  1220. This section is expected to grow considerably in the future.
  1221.  
  1222. "Distributed Object Computing With CORBA", C++ Report, July/August 1993
  1223.  
  1224. The Object Database Standard: ODMG-93
  1225. edited by: R.G.G. Cattell
  1226. published by Morgan Kaufmann Publishers, San Mateo, California
  1227. [Covers CORBA standards with respect to OODBs]
  1228.  
  1229.  
  1230. 3.9)  Why Is Garbage Collection a Good Thing?
  1231. ---------------------------------------------
  1232.  
  1233.   From: Paul Johnson (paj@gec-mrc.co.uk)
  1234.  
  1235. Garbage collection (GC) is a facility in the run-time system associated with a
  1236. language which will automatically reclaim objects which are no longer used.
  1237. OO Languages which require garbage collection include Eiffel, Smalltalk and
  1238. CLOS.  C and C++ can have garbage collection retrofitted (see [3] below).
  1239. [Ada has switchable GC, too -bob]
  1240.  
  1241. Without GC programmers must explicitly deallocate dynamic storage when
  1242. it is no longer needed (in C this is done by a call to free(3)).
  1243. There are a number of problems with this:
  1244.  
  1245. 1: Bugs due to errors in storage deallocation are very hard to find,
  1246.    although products are available which can help.
  1247.  
  1248. 2: In some circumstances the decision about whether to deallocate
  1249.    storage cannot be made by the programmer.  Drawing editors and
  1250.    interpreters often suffer from this.  The usual result is that the
  1251.    programmer has to write an application-specific garbage collector.
  1252.  
  1253. 3: An object which is responsible for deallocating storage must be
  1254.    certain that no other object still needs that storage.  Thus many
  1255.    modules must co-operate closely.  This leads to a tight binding
  1256.    between supposedly independent modules.
  1257.  
  1258. 4: Libraries with different deallocation strategies are often
  1259.    incompatible, hindering reuse.
  1260.  
  1261. 5: In order to avoid problems 3 and 4, programmers may end up copying
  1262.    and comparing whole objects rather than just references.  This is a
  1263.    particular problem with temporary values produced by C++ overloaded
  1264.    operators.
  1265.  
  1266. 6: Because keeping track of storage is extra work, programmers often
  1267.    resort to statically allocated arrays.  This in turn leads to
  1268.    arbitrary restrictions on input data which can cause failure when
  1269.    the assumptions behind the chosen limits no longer apply.  For
  1270.    instance many C compilers limit expression nesting, identifier
  1271.    length, include file nesting and macro stack depth.  This causes
  1272.    problems for programs that generate C.
  1273.  
  1274. One partial solution to a lack of GC is reference counting.  In this
  1275. scheme each object keeps a count of references to it.  When this count
  1276. drops to zero the object is automatically deallocated.  However this
  1277. is inefficient (swapping two references will result in three
  1278. decrements, three increments and six comparisons) and cannot reclaim
  1279. circular data structures.  Two systems that use a reference count GC
  1280. are the Interviews C++ graphics library and the Unix file system (the
  1281. link count).
  1282.  
  1283. Opponents of GC reply that it introduces an overhead which is
  1284. unacceptable in some applications.  However the overhead of manual
  1285. storage deallocation is probably as high as GC.  GC algorithms are
  1286. also available with good real-time behaviour.
  1287.  
  1288. [Further, GC can perform compaction improving locality of reference.]
  1289.  
  1290. Further Reading:
  1291.  
  1292. [1] "Object-Oriented Software Construction" by Meyer puts the argument
  1293. for GC.
  1294.  
  1295. [2] "Uniprocessor Garbage Collection Techniques," by Paul R. Wilson,
  1296. in Memory Management (proceedings of 1992 Int'l Workshop on Memory 
  1297. Management, Sept. 1992, St. Malo, France, Yves Bekkers and Jacques Cohen, 
  1298. eds.), Springer Verlag Lecture Notes in Computer Science #637.
  1299.  
  1300. This is an excellent summary of the state of the art in GC algorithms.  This
  1301. and other papers about garbage collection are available in PostScript via
  1302. anonymous ftp (cs.utexas.edu:pub/garbage/gcsurvey.ps.  [See APPENDIX E]
  1303.  
  1304. [3] "Garbage Collection in an Uncooperative Environment" by Boehm and
  1305. Weiser.  Software --- Practise and Experience vol 18(9), pp 807-820.
  1306. Sept 1988.  This describes GC in C and C++.
  1307.  
  1308. 3.10)  What Can I Do To Teach OO To The Kids?
  1309. ---------------------------------------------
  1310.  
  1311. Smalltalk (in its original 1972 version) was initially intended to make
  1312. computer programming easy enough for children.  The idea was that manipulating
  1313. objects was something more intuitive and natural than coding procedures.
  1314.  
  1315. Other entries or suggestions are welcome, please send to the author of the FAQ.
  1316.  
  1317.